﻿using System;
using System.Collections.Generic;
using Jayden.Dll.Web.Enums;
using Jayden.Dll.Web.HtmlControls.Descriptions;
using Jayden.Dll.Web.HtmlControls.Generics;

namespace Jayden.Dll.Web.HtmlControls
{
	public class FigCaption : HtmlElement
	{
		public FigCaption() : base(FigCaptionDescription.Instance) { }
	}
	public class FigCaptionDescription : HtmlElementDescription
	{
		public static readonly FigCaptionDescription Instance = new FigCaptionDescription();
		private FigCaptionDescription() : base("figcaption", HtmlVersion.Html5) { }
		public override Type ControlType { get { return typeof(FigCaption); } }
		public override bool OnlyFlowContent { get { return true; } }
		public override IEnumerable<HtmlElementDescription> PermittedParents { get { yield return FigureDescription.Instance; } }
		public override string Description { get { return "caption or legend for a figure."; } }
	}
}
